@model IEnumerable<Students>;
    <Div>
        <form asp-action="Index" method="get">
            <label for=""><input name="keyword" placeholder="请输入要查找的名字"></label>
            <input type="submit" value="查找">
        </form>
        <a asp-action="Adds">添加</a>
    </Div>
    <table>
        <thead>
            <tr>
            <th>Id</th>
            <th>学号</th>
            <th>学生姓名</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
            @foreach(var item in Model){
                <tr>
                    <td>@item.Id</td>
                    <td>@item.StudentCode</td>
                    <td>@item.StudentName</td>
                    <td>
                        <a asp-action="Delete"asp-route-id="@item.Id">删除</a>
                        <a asp-action="Edit"asp-route-id="@item.Id">编辑</a>
                    </td>
                
                </tr>
            }
        </tbody>
    </table>